<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    我也正在测试cookie
    <script>
        var d = new Date
        d.setDate(d.getDate() - 2.1)
        // document.cookie = 'hobby=jwjw;path=/'
        // document.cookie = 'age=qw;path=/'
        // document.cookie = `name=as;path=;expires=${d}`
        document.cookie = `name=qweeewq;path=;expires=`
        // document.cookie = `name=qweeewqwqqwqq;path=/use`
        // document.cookie = `name=lkl;path=/use`
        console.log(document.cookie)
        // console.log(d + '11')
    </script>
</body>
</html>